/**
 {
 "addTime": 1718329969000,
 "alreadyUp": false,
 "commentCount": 1,
 "converterType": 3,
 "dataSource": 1,
 "eventTracking": "preview",
 "id": 16244735,
 "images": [
 {
 "url": "https://p0.pipi.cn/friday/5d1fed1624f1d64d7cd3e493e4d30cc3.jpg?imageMogr2/thumbnail/2500x2500%3E"
 }
 ],
 "imgCount": 1,
 "onlineTime": 1718329969000,
 "product": {
 "img": "https://p0.pipi.cn/mmdb/54ecde71338ddd030c50c813e19b261e9b8a6.jpg?imageMogr2/thumbnail/2500x2500%3E",
 "name": "我才不要和你做朋友呢",
 "productId": 1385822,
 "type": 0
 },
 "shareCount": 0,
 "shareInfo": {
 "channel": 4,
 "content": "《我才不要和你做朋友呢》",
 "img": "https://p0.pipi.cn/friday/5d1fed1624f1d64d7cd3e493e4d30cc3.jpg?imageMogr2/thumbnail/2500x2500%3E",
 "title": "电影《我才不要和你做朋友呢》发布片尾曲《想慢慢说的话》MV"
 },
 "style": 4,
 "title": "电影《我才不要和你做朋友呢》发布片尾曲《想慢慢说的话》MV",
 "type": 3,
 "upCount": 101,
 "user": {
 "avatarurl": "http://p0.meituan.net/mmdb/20b0371bdc344c420a3da50fdb7fba1d651337.png",
 "followed": false,
 "identification": 0,
 "nickName": "我才不要和你做朋友呢",
 "userId": 1019821119469
 },
 "video": {
 "dur": 195,
 "height": 720,
 "id": 504188,
 "imgUrl": "https://p0.pipi.cn/friday/5d1fed1624f1d64d7cd3e493e4d30cc3.jpg?imageMogr2/thumbnail/2500x2500%3E",
 "typeDesc": "MV",
 "url": "https://vod.pipi.cn/fec9203cvodtransbj1251246104/ac57c4981253642698993893192/v.f42905.mp4",
 "viewCount": 0,
 "width": 1280
 }
 },
 * */
class Images {
  url:string

  constructor(url:string) {
    this.url = url
  }
}
class Product {
  img:string
  name:string
  productId:number
  type:number

  constructor(img: string, name: string, productId: number, type: number) {
    this.img = img
    this.name = name
    this.productId = productId
    this.type = type
  }

}
class ShareInfo{
  channel:number
  content:string
  img:string
  title:string

  constructor(channel: number, content: string, img: string, title: string) {
    this.channel = channel
    this.content = content
    this.img = img
    this.title = title
  }


}
class User {
  avatarurl:string
  followed:boolean
  identification:number
  nickName:string
  userId:number

  constructor(avatarurl: string, followed: boolean, identification: number, nickName: string, userId: number) {
    this.avatarurl = avatarurl
    this.followed = followed
    this.identification = identification
    this.nickName = nickName
    this.userId = userId
  }

}
class Video{
  dur:number
  height:number
  id:number
  imgUrl:string
  typeDesc:string
  url:string
  viewCount:number
  width:number

  constructor(dur: number, height: number, id: number, imgUrl: string, typeDesc: string, url: string, viewCount: number, width: number) {
    this.dur = dur
    this.height = height
    this.id = id
    this.imgUrl = imgUrl
    this.typeDesc = typeDesc
    this.url = url
    this.viewCount = viewCount
    this.width = width
  }

}
export class Feed{
  addTime:number
  alreadyUp:boolean
  commentCount:number
  converterType:number
  dataSource:number
  eventTracking:string
  id:number
  images:Images[]
  imgCount:number
  onlineTime:number
  product:Product
  shareCount:number
  shareInfo:ShareInfo
  title:string
  type:number
  upCount:number
  user:User
  video:Video

  // constructor(addTime: number, alreadyUp: boolean, commentCount: number, converterType: number, dataSource: number, eventTracking: string, id: number, images: Images[], imgCount: number, onlineTime: number, product: Product, shareCount: number, shareInfo: ShareInfo, title: string, type: number, upCount: number, user: User, video: Video) {
  //   this.addTime = addTime
  //   this.alreadyUp = alreadyUp
  //   this.commentCount = commentCount
  //   this.converterType = converterType
  //   this.dataSource = dataSource
  //   this.eventTracking = eventTracking
  //   this.id = id
  //   this.images = images
  //   this.imgCount = imgCount
  //   this.onlineTime = onlineTime
  //   this.product = product
  //   this.shareCount = shareCount
  //   this.shareInfo = shareInfo
  //   this.title = title
  //   this.type = type
  //   this.upCount = upCount
  //   this.user = user
  //   this.video = video
  // }
  constructor(data:{addTime: number, alreadyUp: boolean, commentCount: number,
  converterType: number, dataSource: number, eventTracking: string,
  id: number, images: Images[], imgCount: number, onlineTime: number,
  product: Product, shareCount: number, shareInfo: ShareInfo,
  title: string, type: number, upCount: number, user: User, video: Video}) {
    this.addTime = data.addTime
    this.alreadyUp = data.alreadyUp
    this.commentCount = data.commentCount
    this.converterType = data.converterType
    this.dataSource = data.dataSource
    this.eventTracking = data.eventTracking
    this.id = data.id
    this.images = data.images
    this.imgCount = data.imgCount
    this.onlineTime = data.onlineTime
    this.product = data.product
    this.shareCount = data.shareCount
    this.shareInfo = data.shareInfo
    this.title = data.title
    this.type = data.type
    this.upCount = data.upCount
    this.user = data.user
    this.video = data.video
  }

}